package com.pai4j.domain.vo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;


/**
 * ES 数据同步抽象消息结构
 */
@Data
public class AbstractESMessageDTO {


    private String id;

    /**
     * 消息分类
     */
    @JsonProperty("type")
    private Integer type;

    @JsonProperty("sender_id")
    private String senderId;

    @JsonProperty("proxy_sender_id")
    private String proxySenderId;

    @JsonProperty("receiver_id")
    private String receiverId;

    @JsonProperty("biz_id")
    private String bizId;

    @JsonProperty("content")
    private String content;

    @JsonProperty("data")
    private String data;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("create_date")
    private Date createDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("update_date")
    private Date updateDate;
}
